export const editorOption = {
    title: {
        text: '',
        subtext: '实时数据'
    },
    tooltip: {
        trigger: 'axis'
    },
    legend: {
        data:['电压','电流']
    },
    toolbox: {
        show: true,
        feature: {
            dataZoom: {
                yAxisIndex: 'none'
            },
            dataView: {readOnly: false},
            magicType: {type: ['line', 'bar']},
            restore: {},
            saveAsImage: {}
        }
    },
    xAxis:  {
        type: 'category',
        boundaryGap: false,
        data: []
    },
    yAxis: {
        type: 'value',
        axisLabel: {
            formatter: '{value} '
        }
    },
    series: [
        {
            name:'电压',
            type:'line',
            data:[0],
            markPoint: {
                /*data: [
                    {type: 'max', name: '最大值'},
                    {type: 'min', name: '最小值'}
                ]*/
            },
            markLine: {
                /*data: [
                    {type: 'average', name: '平均值'}
                ]*/
            }
        },
        {
            name:'电流',
            type:'line',
            data:[0],
            markPoint: {
               /* data: [
                    {type: 'max', name: '最大值'},
                    {type: 'min', name: '最小值'}
                ]*/
            },
            markLine: {
                /*data: [
                    {type: 'average', name: '平均值'},
                    [{
                        symbol: 'none',
                        x: '90%',
                        yAxis: 'max'
                    }, {
                        symbol: 'circle',
                        label: {
                            normal: {
                                position: 'start',
                                formatter: '最大值'
                            }
                        },
                        type: 'max',
                        name: '最高点'
                    }]
                ]*/
            }
        }
    ]
}